//  获取网络状态

const getNetwork = function () {
  return new Promise((resolve, reject) => {
    uni.getNetworkType({
      success: function (res) {
        resolve(res.networkType)
      },
    })
  })
}
export default getNetwork
